package com.tiancikeji.zaoke.app.service.pay.impl;

import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.tiancikeji.zaoke.app.model.order.PayMode;
import com.tiancikeji.zaoke.app.service.pay.PayService;
import com.tiancikeji.zaoke.app.util.ZaokeUtils;

public class PayServiceImpl implements PayService {

	private List<PayMode> payModes;
	
	private List<PayMode> payModesWeb;

	public List<PayMode> getPayMode(String os) {
		if(StringUtils.equalsIgnoreCase(os, ZaokeUtils.OS_WEB))
			return payModesWeb;
		else
			return payModes;
	}

	public List<PayMode> getPayModes() {
		return payModes;
	}

	public void setPayModes(List<PayMode> payModes) {
		this.payModes = payModes;
	}
	
	public List<PayMode> getPayModesWeb() {
		return payModesWeb;
	}

	public void setPayModesWeb(List<PayMode> payModesWeb) {
		this.payModesWeb = payModesWeb;
	}

}
